<template>
<input
  :class="schema.commonFormControlClass"
  type="password"
  :name="field.name"
  :placeholder="field.placeholder"
  :maxlength="field.max"
  :value="value"
  :disabled="disabled"
  @input="onChange">
</template>

<script>
export default {
  props: {
    schema: {
      type: Object,
      default () {
        return {}
      }
    },
    value: {},
    field: Object,
    disabled: Boolean
  },
  methods: {
    onChange (e) {
      this.$emit('input', e.target.value)
    }
  }
}
</script>
